โ– humdrum codex / glint v1.0.2
license AGPL-3.0
1.7 KB raw
id
TASK-025
title
Find: focused match first char shows cursor color instead of full active highlight
status
๐ŸŸฆ Backlog
assignee
created_date
2026-06-29 22:14
updated_date
2026-06-30 00:22
labels
bug, release-2
dependencies
priority
medium
ordinal
25000

Description

In find mode (Ctrl+G), the focused/active match renders its first character in the cursor color (Pointer bg) while the rest of the match is the dark-yellow active highlight (SelBg/SelFg). Other (non-focused) matches render correctly in the light-yellow Highlight bg. The first char looks wrong โ€” should be uniformly the active-match highlight.

Root cause: editor.go View() (~line 602). moveToActive parks the cursor at the active match's start col. The active match row is rendered via renderSpansCursor, which paints the cell at Cursor.Col with cursorStyle (Foreground=Background, Background=Pointer) ON TOP of the already-applied findActiveStyle (Foreground=SelFg, Background=SelBg). So the first cell of the focused match always wins the cursor style.

Fix direction: when find is active and the cursor sits on the active match, either suppress the cursor overlay on that match (let findActiveStyle own all cells) or render the cursor without clobbering the match bg. Add a render test.

Acceptance Criteria